import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:geomancy/styles/index.dart';

class CommonShadowTextWidget extends StatelessWidget {
  final String txt;
  final double? fontSize;
  const CommonShadowTextWidget({super.key, required this.txt, this.fontSize});

  @override
  Widget build(BuildContext context) {
    return Text(txt, style: TextStyle(
      fontSize: fontSize ?? 50.sp,
      fontWeight: FontWeight.bold,
      fontFamily: 'fontHanSerifCN',
      color: ColorStyle.pageDefaultColor,
      shadows:  <Shadow>[
        Shadow(
          offset: const Offset(1, 1),
          blurRadius: 1.w,
          color: Colors.black,
        ),
      ],
    ));
  }
}

